package com.project.bean;

import java.time.LocalDate;
import java.util.List;

/**员工实体类*/
public class EmployeeBean {
    /**员工id*/
    private int id;
    /**员工名*/
    private String name;
    /**员工出生日*/
    private LocalDate birthday;
    /**员工专长*/
    private String speciality;
    /**员工状态*/
    private String status = "在职";
    /**员工工资*/
    private double wages;
    /**员工电话*/
    private String tel;
    /**员工入职日期*/
    private LocalDate inDate = LocalDate.now();
    /**员工头像存放文件名*/
    private String imageDir;
    /**正在做的项目的数量*/
    private int doingProjectNum;
    /**员工参与项目明细*/
    private List<EmployeeDoProject> employeeDoProjectList;

    public EmployeeBean() {
    }

    public EmployeeBean(String name, LocalDate birthday, String speciality, double wages, String tel, String imageDir) {
        this.name = name;
        this.birthday = birthday;
        this.speciality = speciality;
        this.wages = wages;
        this.tel = tel;
        this.imageDir = imageDir;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public LocalDate getBirthday() {
        return birthday;
    }

    public void setBirthday(LocalDate birthday) {
        this.birthday = birthday;
    }

    public String getSpeciality() {
        return speciality;
    }

    public void setSpeciality(String speciality) {
        this.speciality = speciality;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public double getWages() {
        return wages;
    }

    public void setWages(double wages) {
        this.wages = wages;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public LocalDate getInDate() {
        return inDate;
    }

    public void setInDate(LocalDate inDate) {
        this.inDate = inDate;
    }

    public String getImageDir() {
        return imageDir;
    }

    public void setImageDir(String imageDir) {
        this.imageDir = imageDir;
    }

    public int getDoingProjectNum() {
        return doingProjectNum;
    }

    public void setDoingProjectNum(int doingProjectNum) {
        this.doingProjectNum = doingProjectNum;
    }

    public List<EmployeeDoProject> getEmployeeDoProjectList() {
        return employeeDoProjectList;
    }

    public void setEmployeeDoProjectList(List<EmployeeDoProject> employeeDoProjectList) {
        this.employeeDoProjectList = employeeDoProjectList;
    }

    @Override
    public String toString() {
        return "EmployeeBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", birthday=" + birthday +
                ", speciality='" + speciality + '\'' +
                ", status='" + status + '\'' +
                ", wages=" + wages +
                ", tel='" + tel + '\'' +
                ", inDate=" + inDate +
                ", imageDir='" + imageDir + '\'' +
                ", doingProjectNum=" + doingProjectNum +
                ", employeeDoProjectList=" + employeeDoProjectList +
                '}';
    }
}
